package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.parenting.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * <p>
 * 孕妇认证
 * </p>
 *
 * @author zcj
 * @since 2021-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("parenting_shopper_fetation")
@ApiModel(value = "ShopperFetation对象", description = "孕妇认证")
public class ShopperFetation extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "孕妇的ID")
    @TableField("SHOPPER_ID")
    private Long shopperId;

    @ApiModelProperty(value = "预产期")
    @TableField("PREGNANT_TIME")
    private LocalDate pregnantTime;

    @ApiModelProperty(value = "预产期也是认证有效期 也是怀孕时间")
    @TableField("CERT_VALID")
    private LocalDate certValid;

    @ApiModelProperty(value = "认证失败的原因")
    @TableField("CERT_FAIL")
    private String certFail;

    @ApiModelProperty(value = "孕妇认证状态 0:未通过1:信息不全2:审核中3:认证通过4:已过期")
    @TableField("STATUS")
    private Integer status;


}
